package com.yanqu.road.entity.activity.stronghold;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.union.UnionBaseInfo;

import java.math.BigInteger;

@FieldTypeAnnotation(tableName = "t_c_activity_stronghold_eliminate_union_score")
public class StrongholdEliminateUnionScore extends DataObject {
    @FieldTypeAnnotation(select = true,update = true)
    private int activityId;
    @FieldTypeAnnotation(update = true)
    private String unionId;
    //历史积分 没有加上当前积分
    @FieldTypeAnnotation
    private BigInteger historyScore = BigInteger.ZERO;
    //当前轮积分
    @FieldTypeAnnotation
    private BigInteger curRoundScore = BigInteger.ZERO;
    @FieldTypeAnnotation
    private int resetScoreRound;
    private UnionBaseInfo unionBaseInfo;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public BigInteger getHistoryScore() {
        return historyScore;
    }

    public void setHistoryScore(BigInteger historyScore) {
        this.historyScore = historyScore;
        setUpdateOption();
    }

    public BigInteger getCurRoundScore() {
        return curRoundScore;
    }

    public void setCurRoundScore(BigInteger curRoundScore) {
        this.curRoundScore = curRoundScore;
        setUpdateOption();
    }

    public int getResetScoreRound() {
        return resetScoreRound;
    }

    public void setResetScoreRound(int resetScoreRound) {
        this.resetScoreRound = resetScoreRound;
        setUpdateOption();
    }

    public UnionBaseInfo getUnionBaseInfo() {
        return unionBaseInfo;
    }

    public void setUnionBaseInfo(UnionBaseInfo unionBaseInfo) {
        this.unionBaseInfo = unionBaseInfo;
    }
}
